‹‹Close MenuView Menu

Modbus Rtu 8 Channel 12V Relay Module Switch Input / Output

I/O interface with relay digital outputs controlled via Modbus RTU over RS485 bus at high speed (up to 1Mb/s).

I/O interface with relay digital outputs controlled via Modbus RTU over RS485 bus at high speed (up to 1Mb/s).
The outputs are equipped with a power relay installed on the socket for quick and easy replacement. Each relay has a status indicator LED and connection terminals for the changeover contact.
Particularly suited for use with compact line Web PLCs through a configuration file and CoDeSys library for direct integration in the "PLC Configuration" of the programming tool.
Realization on open board with support for DIN rail mounting.


Modbus RTU instruction

Baud rate: 96008 NONE 1

Hexadecimal transmission
Hexadecimal reception

Operation steps:
1. Software Setting Communication Baud Rate
2. Setting Address (Device Address for Communication, Default Address 01)

/ *********************************************************************************************************************************/

Note: Only one device is connected, otherwise the address will be set.
Set the address to:01
00 100 00 00 01 02 00 01 6 A 00// Modified to 01
Set the address to: 02
00 100 00 00 01 02 00 02 2A 01// Modified to 02
Set the address to: 03
00 100 00 00 01 02 00 03 EB C1// Modified to 03


Read address
00 03 00 00 01 85 dB
Return:
00 03 02 00 01 44 44 //01 as address

/ *********************************************************************************************************************************/
/ *********************************************************************************************************************************/
The meaning of each byte is:
Address [1]
// ------------------------------------------------------------------------------------------------------------------------------------------------
No. 1 relay on: 01 05 00 01 00 9D 9A

Byte 1: Address
Byte 2: Function?
Byte 34: Register address
Byte 56: Register data
Byte 7 8: CRC Check

//==============================================================
Address [1]
// ------------------------------------------------------------------------------------------------------------------------------------------------
No. 0 relay on: 01 05 00 FF 00 8C 3A
No. 0 relay closed: 01 05 00 00 00 00 CD CA
// ------------------------------------------------------------------------------------------------------------------------------------------------
No. 1 relay on: 01 05 00 01 FF 00 DD FA
No. 1 Relay Turn Off: 01 05 00 01 00 9C 0A
// ------------------------------------------------------------------------------------------------------------------------------------------------
No. 2 relay on: 01 05 00 02 FF 00 2D FA
No. 2 Relay Turn Off: 01 05 00 02 00 06C 0A
// ------------------------------------------------------------------------------------------------------------------------------------------------
No. 3 relay on: 01 05 00 03 FF 00 7C 3A
No. 3 Relay Turn Off: 01 05 00 03 00 3D CA
// ------------------------------------------------------------------------------------------------------------------------------------------------
No. 4 relay on: 01 05 00 04 FF 00 CD FB
No. 4 relay shutdown: 01 05 00 04 00 8C 0B
// ------------------------------------------------------------------------------------------------------------------------------------------------
No. 5 relay on: 01 05 00 05 FF 00 9C 3B
No. 5 relay closed: 01 05 00 05 00 00 DD CB
// ------------------------------------------------------------------------------------------------------------------------------------------------
No. 6 relay on: 01 05 00 06 FF 00 6C 3B
Relay No. 6 Turn Off: 01 05 00 06 00 2D CB
// ------------------------------------------------------------------------------------------------------------------------------------------------
No. 7 relay on: 01 05 00 07 FF 00 3D FB
Relay No. 7 Turn Off: 01 05 00 07 00 07 C 0B
// ------------------------------------------------------------------------------------------------------------------------------------------------

/ ********************************************************************************************************************************/
Read No. 0 relay status: 01 01 00 00 01 FD CA
Read No. 1 relay status: 01 01 00 01 01 AC 0A
Read 2 relay status: 01 01 00 02 00 01 5C 0A
Read 3 relay status: 01 01 00 03 00 01 0D CA
Read the status of No. 4 relay: 01 01 00 04 00 01 BC 0B
Read No. 5 relay status: 01 01 00 05 00 01 ED CB
Read No. 6 relay status: 01 01 00 06 00 01 1D CB
Read 7 relay status: 01 01 00 07 00 01 4C 0B

Read all relay status: 01 01 00 00 08 3D CC
/ *********************************************************************************************************************************/
Flip the instruction:
Description: Close immediately after opening. 100MS is a unit [1 stands for 100MS]

Address No. 1:
No. 0 relay flashover: 01 05 02 00 07 00 CE 42//700MS = 7*100MS = 700MS
No. 1 relay flashover: 01 05 02 01 08 00 9A 72//800MS
Return: The same as sending instructions
Address 2:
No. 0 relay flashover: 02 05 02 00 05 00 CF 11//500MS
No. 1 relay flashover: 02 05 02 01 06 00 9E 21//600MS

//======================================================================
Total extinction: 01 0F 00 00 00 08 01 00 FE 95
Full Bright: 01 0F 00 00 08 01 FF BE D5

/ ********************************************************************************************************************************/
Single flip instruction:
No. 0 relay flip: 01 05 00 55 00 F2 9A
No. 1 relay flip: 01 05 00 01 55 00 A3 5A
No. 2 relay overturn: 01 05 00 02 55 00 53 5A
No. 3 relay overturn: 01 05 00 03 55 00 02 9A
No. 4 relay flip: 01 05 00 04 55 00 B 3 5B
No. 5 relay overturn: 01 05 00 05 55 00 E2 9B
No. 6 relay overturn: 01 05 00 06 55 00 129B
No. 7 relay flip: 01 05 00 07 55 00 43 5B

All flip instructions:
01 05 00 5A 00 F7 6A

/ ***********************************************************************************************************************************/
Read all interface input states
Send: 01 02 00 00 00 08 79 CC // Read 8 input states
Return: 01 02 01 00 A1 88